/*
 *  Copyright (C) 2011 felixtheripper <felixtheripper_AT_gmail.com>
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
/**
 *
 * @author felixtheripper
 *
 * email: felixtheripper_AT_gmail.com
 * ... please remove "_AT_" from the above string to get the right email address
 *
 */


package org.myorg.ctm.etk.gui.swg.display.text.html;

import javax.swing.text.html.StyleSheet;

/**
 *
 * 
 */

public class EtkStyleSheet
{
	final static private String[] _STRS_DEFAULT_RULE =
    {
        //"body {color: green; background-color: Silver}"


        "nobr {white-space: nowrap}",
        "ol {margin-left: 50; margin-top: 10; list-style-type: decimal; margin-bottom: 10}",
        "u {text-decoration: underline}",
        "s {text-decoration: line-through}",
        "p {font-weight: normal; margin-top: 15; font-size: medium}",
        "dd p {margin-left: 0; margin-top: 0; margin-bottom: 0}",
        "ol li p {margin-top: 0; margin-bottom: 0}",
        "address {font-style: italic; color: blue}",
        "i {font-style: italic}",
        "h6 {font-weight: bold; margin-top: 10; margin-bottom: 10; font-size: xx-small}",
        "h5 {font-weight: bold; margin-top: 10; margin-bottom: 10; font-size: x-small}",
        "h4 {font-weight: bold; margin-top: 10; margin-bottom: 10; font-size: small}",
        "h3 {font-weight: bold; margin-top: 10; margin-bottom: 10; font-size: medium}",
        "h2 {font-weight: bold; margin-top: 10; margin-bottom: 10; font-size: large}",
        "h1 {font-weight: bold; margin-top: 10; margin-bottom: 10; font-size: x-large}",
        "dir li p {margin-top: 0; margin-bottom: 0}",

        "b {font-weight: bold}",

        "caption {caption-side: top; text-align: center}",
        "a {text-decoration: underline; color: blue}",
        "ul li ul li ul li {margin-left: 0; margin-top: 0; margin-bottom: 0; margin-right: 0}",
        "menu {margin-left: 40; margin-top: 10; margin-bottom: 10}",
        "menu li p {margin-top: 0; margin-bottom: 0}",
        "sup {vertical-align: sup}",
        "body {margin-left: 0; font-family: Serif; font-size: 14pt; color: black; background-color: #ffffff; margin-right: 0}",
        "ul li ul li ul {margin-left: 25; list-style-type: square}",
        "blockquote {margin-left: 35; margin-top: 5; margin-bottom: 5; margin-right: 35}",
        "samp {font-family: Monospaced; font-size: small}",
        "cite {font-style: italic}",
        "sub {vertical-align: sub}",
        "em {font-style: italic}",
        "ul li p {margin-top: 0; margin-bottom: 0}",
        "ul li ul li {margin-left: 0; margin-top: 0; margin-bottom: 0; margin-right: 0}",
        "var {font-weight: bold; font-style: italic}",
        "table {border-color: Gray; border-style: outset}",
        "dfn {font-style: italic}",
        "menu li {margin-left: 0; margin-top: 0; margin-bottom: 0; margin-right: 0}",
        "strong {font-weight: bold}",
        "ul {margin-left: 50; margin-top: 10; list-style-type: disc; margin-bottom: 10}",
        "center {text-align: center}",
        "ul li ul {margin-left: 25; list-style-type: circle}",
        "kbd {font-family: Monospaced; font-size: small}",
        "dir li {margin-left: 0; margin-top: 0; margin-bottom: 0; margin-right: 0}",
        "ul li menu {margin-left: 25; list-style-type: circle}",
        "dt {margin-top: 0; margin-bottom: 0}",
        "ol li {margin-left: 0; margin-top: 0; margin-bottom: 0; margin-right: 0}",
        "li p {margin-top: 0; margin-bottom: 0}",

        "strike {text-decoration: line-through}",
        "dl {margin-left: 0; margin-top: 10; margin-bottom: 10}",
        "tt {font-family: Monospaced}",
        "ul li {margin-left: 0; margin-top: 0; margin-bottom: 0; margin-right: 0}",
        "dir {margin-left: 40; margin-top: 10; margin-bottom: 10}",
        "tr {text-align: left}",
        "pre p {margin-top: 0}",
        "dd {margin-left: 40; margin-top: 0; margin-bottom: 0}",
        "th {padding-right: 3; border-color: Gray; font-weight: bold; padding-bottom: 3; text-align: center; padding-left: 3; padding-top: 3; border-style: inset}",
        "pre {margin-top: 5; margin-bottom: 5; font-family: Monospaced}",
        "td {padding-right: 3; border-color: Gray; padding-bottom: 3; padding-left: 3; padding-top: 3; border-style: inset}",
        "code {font-family: Monospaced; font-size: small}",
        "small {font-size: x-small}",
        "big {font-size: x-large}"

    };

	static public StyleSheet s_getDefault()
    {
        StyleSheet sst = new StyleSheet();

        for (int i=0; i<EtkStyleSheet._STRS_DEFAULT_RULE.length; i++)
            sst.addRule(EtkStyleSheet._STRS_DEFAULT_RULE[i]);

        // ending
        return sst;
    }
}
